<?php

class Word
{
    var
    $id,
    $value,
    $complexity,
    $moderated;

    static function fromRow($row) {
        $word = new Word();
        $word->id = $row['id'];
        $word->value = $row['value'];
        $word->complexity = $row['complexity'];
        $word->moderated = $row['moderated'];
        return $word;
    }
}
?>